package cas.ihep.util;

import java.io.ByteArrayOutputStream;

public class ByteArrayOutputStreamZC extends ByteArrayOutputStream {
    public ByteArrayOutputStreamZC(){
        super(32);
    }

    public ByteArrayOutputStreamZC(int sz){
        super(sz);
    }

    public synchronized byte[] toByteArray(){
        return buf;
    }
}
